<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<head>
<meta name="menu" content="superviseMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="0" />
<title>监督日志列表</title>
<base target="_self">
<script type="text/javascript">
	$(document).ready(function() {
		$("#prepareDate").addClass("Wate").bind("click", function() {
			WdatePicker({
				skin : 'whyGreen',
				minDate : '1900-10-01',
				dateFmt : 'yyyy-MM-dd HH:mm:ss'
			});
		});
		$("#dealDate").addClass("Wate").bind("focus", function() {
			WdatePicker({
				skin : 'whyGreen',
				minDate : '#F{$dp.$D(\'prepareDate\')}',
				dateFmt : 'yyyy-MM-dd HH:mm:ss'
			});
		});
	});

	function close() {
		$.window.closeAll();
	}
</script>
</head>
<body>
	<div id="message">
		<s:actionmessage theme="custom" cssClass="success" />
	</div>
	<form action="${ctx}/quality/check_result.action" method="get"
		class="yform" id="mainForm">
		<div id="content">
			<table id="contentTable">
				<tr>
					<th>序号</a></th>
					<th>类型</th>
					<th>问题描述</th>
					<th>发现时间</th>
					<th>提交人</th>
					<th>操作</th>
				</tr>
				<c:forEach items="${page.result }" var="check" varStatus="status">
					<tr class="${(status.count % 2 == 0) ? 'even' : 'odd'}">
						<td>${page.first+status.index}</td>
						<td><pt:code category="3011" code="${check.type }"></pt:code>
						</td>
						<td>${check.content}</td>
						<td>${check.prepareDate}</td>
						<td>${check.preparer }</td>
						<td><a id="a_submit"
							href="javascript:showWindow('编辑整改处罚','${ctx}/quality/check_result!look.action?id=${check.id }&decorator=open&confirm=true');">编辑</a>
							<a href="${ctx }/quality/check_result!delete.action?id=${check.id}&fid=${param.id}" id="a_delete">删除</a>
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>
		<s:include value="/common/page.jsp"></s:include>
	</form>
</body>